package control;

import javax.servlet.ServletException;
import javax.servlet.http.*;
import java.io.IOException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ActionPtos {

	protected final Log logger=LogFactory.getLog(getClass());
	private String sal=null;
	@RequestMapping(value="*.jsp")
	public ModelAndView respuestaaclie(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException{
		logger.info("Se ha pasado por el logger");
		
		return new ModelAndView("home.jsp");
	}
	public String getSal() {
		return sal;
	}
	public void setSal(String sal) {
		this.sal = sal;
	}
	
	
	
	
}
